package com.systemCapacity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.systemCapacity.common.dto.AttributeDto;
import com.systemCapacity.common.dto.BlueEquipmentDto;
import com.systemCapacity.common.dto.EquipmentDto;
import com.systemCapacity.entity.Equipment;

import java.util.List;

public interface EquipmentService extends IService<Equipment> {

    List<EquipmentDto> getChildEquipment(String templateId);

    boolean equipmentExist(String equipmentId);

    boolean equipmentNameExist(String equipmentName);

    boolean saveEquipment(EquipmentDto dto);

    boolean editEquipment(EquipmentDto dto);
    boolean deleteEquipmentByEquipmentId(String equipmentId);
    boolean editBlueEquipment(List<BlueEquipmentDto> equipmentList);
    boolean editDataLinkAttr(List<AttributeDto> attributeList);
    List<String> getEquipmentTemplates(List<String> ids);
}
